package cn.wenhe9.gulimall.order.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.wenhe9.gulimall.order.dao.OmsOrderReturnReasonDao;
import cn.wenhe9.gulimall.order.entity.OmsOrderReturnReasonEntity;
import cn.wenhe9.gulimall.order.service.OmsOrderReturnReasonService;


@Service("omsOrderReturnReasonService")
public class OmsOrderReturnReasonServiceImpl extends ServiceImpl<OmsOrderReturnReasonDao, OmsOrderReturnReasonEntity> implements OmsOrderReturnReasonService {

    @Override
    public IPage<OmsOrderReturnReasonEntity> queryPage(Map<String, Object> params) {
        Long currnet = (Long) params.get("page");
        Long limit = (Long) params.get("limit");
        IPage<OmsOrderReturnReasonEntity> page = this.page(
                new Page<OmsOrderReturnReasonEntity>(currnet, limit),
                new QueryWrapper<OmsOrderReturnReasonEntity>()
        );
        return page;
    }

}